package com.ruoyi.applet.order.mapper;

import com.ruoyi.applet.order.domain.OrdOrderCommodity;

import java.util.List;

/**
 * 订单商品Mapper接口
 * @author ruoyi
 * @date 2025-01-02
 */
public interface OrdOrderCommodityMapper {
    
    /**
     * 查询订单商品
     * @param id 订单商品主键
     * @return 订单商品
     */
    public OrdOrderCommodity selectOrdOrderCommodityById(Long id);
    
    /**
     * 查询订单商品列表
     * @param ordOrderCommodity 订单商品
     * @return 订单商品集合
     */
    public List<OrdOrderCommodity> selectOrdOrderCommodityList(OrdOrderCommodity ordOrderCommodity);
    
    /**
     * 新增订单商品
     * @param ordOrderCommodity 订单商品
     * @return 结果
     */
    public int insertOrdOrderCommodity(OrdOrderCommodity ordOrderCommodity);
    
    /**
     * 修改订单商品
     * @param ordOrderCommodity 订单商品
     * @return 结果
     */
    public int updateOrdOrderCommodity(OrdOrderCommodity ordOrderCommodity);
    
    /**
     * 删除订单商品
     * @param id 订单商品主键
     * @return 结果
     */
    public int deleteOrdOrderCommodityById(Long id);
    
    /**
     * 批量删除订单商品
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrdOrderCommodityByIds(String[] ids);
}
